package cn.com.fuhuitong.main.goods.entity

import cn.com.fuhuitong.http.BaseResponse

data class GoodsListResponse(
    val data: MutableList<GoodsListEntity> = mutableListOf()
) : BaseResponse()

data class GoodsListEntity(
    val experience_price: String,
    val id: Int,
    val image: String,
    val member_discount: Int,
    val member_discount_price: String,
    val member_price: String,
    val price: String,
    val sales_volume: Int,
    val title: String
)


data class GoodsDetailsResponse(
    val data: GoodsDetailsEntity
) : BaseResponse()

data class GoodsDetailsEntity(
    val banner_images: String,
    val content: String,
    val experience_price: String,
    val id: Int,
    val is_specifications: Int,
    val label_ids: String,
    val stock: Int,
    val label_name: List<String>,
    val member_discount: Int,
    val member_discount_price: Double,
    val member_price: String,
    val price: String,
    val sales_volume: Int,
    val title: String,
    var group_name: String = ""
//    val specifications: GoodsSpecsEntity = GoodsSpecsEntity(
//        member_discount = member_discount,
//        member_discount_price = member_discount_price,
//        specifications_name = "",
//        specifications_num = stock,
//        specifications_price = price
//    )
) {
    var specifications: GoodsSpecsEntity? = null
}

data class GoodsSpecsResponse(
    val data: MutableList<GoodsSpecsEntity> = mutableListOf()
) : BaseResponse()

data class GoodsSpecsEntity(
    val id: Int = 0,
    val member_discount: Int,
    val member_discount_price: Double,
    val specifications_name: String,
    val specifications_num: Int,
    val specifications_price: String
) {
    var count: Int = 0
}